package com.lixw.jdbc.core.dao;

import java.util.List;
import java.util.Map;

/**
@InterFaceName: BaseDao
@description: 
@author: xuweiLi
@create: 2025/5/30 16:39
**/
public interface BaseDao<T,P> {

    List<T> list();

    List<T> list(String whereSql, Object... args);

    T getOne(String whereSql, Object... args);

    T getById(P id);

    boolean sava(T t);

    boolean updateById(T obj);

    boolean update(T obj,String whereSql,Object... args);

    boolean deleteById(P id);

    boolean delete(String whereSql,Object... args);

    long count(String whereSql,Object... args);

/*    Map<Object,Object> queryMap(String sql, Object... args);

    List<Object> queryList(String sql, Object... args);*/
}
